from multineuro.sprite import MovableSprite


class MonkeySprite(MovableSprite):
    """ The  """
    def __init__(self, sprite, *sprites):
        super(MonkeySprite, self).__init__(sprite)
        self.sprites = [sprite] + list(sprites)
        self.actual = 0

    def swap(self):
        self.actual = (self.actual + 1) % len(self.sprites)
        self.image = self.sprites[self.actual].image
        self.dirty = 1
